<div id="content" class="upload">
	<div id="center">
		<div id="upload">
			<p class="title"><?php echo lang('share_images'); ?></p>
			<div id="buttons">
				<a id="upload_computer" class="button enabled"><?php echo lang('computer'); ?></a>
				<a id="upload_web" class="button enabled"><?php echo lang('web'); ?></a>
				<a id="upload_initiate" class="button"><?php echo lang('initiate'); ?> (<span id="album_size">0</span>/<?php echo fw::config('upload_limit'); ?>)</a>
				<a id="upload_cancel" class="button enabled"><?php echo lang('cancel'); ?></a>
				<div class="clear"></div>
			</div>
			<div id="upload_list">
				<p id="upload_list_empty"><?php echo lang('list_empty'); ?></p>
			</div>
			<p id="upload_info" class="notification">
				<?php echo lang('notification', array('size'=>size(fw::config('file_limit')))); ?>
			</p>
		</div>
		<div id="recent">
			<p class="title"><?php echo lang('recently_added'); ?></p>
			<div id="gallery">
				<?php while($image = $recent->fetch($i)): ?>
				<?php if($i%4 == 1): ?><div><?php endif; ?>
				<a href="<?php echo WEB.$image->alpha(); ?>/">
					<?php $image->output('small'); ?>
				</a>
				<?php if($i%4 == 0): ?></div><?php endif; ?>
				<?php endwhile; ?>
				<?php if($i%4 != 0): ?></div><?php endif; ?>
			</div>
			<p>
				<a href="gallery/" class="button enabled"><?php echo lang('browse_gallery'); ?></a>
				<span class="right"><?php echo lang('total_images', $total, '<span>{n}</span>'); ?></span>
			</p>
		</div>
		<div class="clear"><!-- --></div>
	</div>
</div>